package com.sunsharing.transport;

import com.sunsharing.common.Constant;
import com.sunsharing.common.URL;
import com.sunsharing.common.anno.AnoClassCretator;
import com.sunsharing.common.anno.AnoClassCretator;
import com.sunsharing.transport.mina.MinaClient;
import com.sunsharing.transport.netty.NettyClient;

/**
 * Created with IntelliJ IDEA.
 * User: criss
 * Date: 13-4-11
 * Time: 下午1:48
 * To change this template use File | Settings | File Templates.
 */
public class ClientCreater {

    public Client createClient(URL url)
    {
        String pro = url.getProtocol();
        return (Client) AnoClassCretator.getInstance().createObject(Client.class,pro);
    }


}
